/*
 * @Descripttion: Descripttion
 * @Author: Lzz
 * @Date: 2025-02-23 21:44:44
 * @LastEditors: Lzz
 * @LastEditTime: 2025-02-24 21:36:05
 */
import request from '@/utils/request'

export function fetchList(params) {
  return request({
    url: '/back/ums/currency/page',
    method: 'get',
    params: params
  })
}

export function createRate(data) {
  return request({
    url: '/back/ums/currency/insert',
    method: 'post',
    data: data
  })
}

export function updateRate(id, data) {
  data.id = id
  return request({
    url: '/back/ums/currency/update',
    method: 'put',
    data: data
  })
}

export function deleteRate(id) {
  return request({
    url: '/back/ums/currency/delete/' + id,
    method: 'delete'
  })
}


